﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="Golbal_FlashMode.aspx.cs" Inherits="Manage_Golbal_FlashMode" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style=" margin-left:20px; font-size:17px; margin-top:10px; color:Red;">
        请用PS等软件把图片修改为大小 (宽443px*高209px)
    </div>
      
      <br />
    <asp:GridView ID="GridView1" runat="server"  Width="819px" 
            CellPadding="4" EnableModelValidation="True" ForeColor="#333333" 
            GridLines="None" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit"
            OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="id"
            >
        <AlternatingRowStyle BackColor="White" />
        <Columns>
          <asp:TemplateField>
             <ItemTemplate>
                 <asp:Label ID="id" runat="server" Text='<%#Eval("id")%>'></asp:Label>
             </ItemTemplate>
          </asp:TemplateField>
          <asp:TemplateField HeaderText="图片">
             <ItemTemplate>
             <asp:Image ID="Image1" runat="server" ImageUrl='<%#"~/"+Eval("img")+"?rand="+ DateTime.Now.ToString("yyyy.MM.dd.h.m.s")%>' Width="250px" />
             </ItemTemplate>
             <EditItemTemplate>
                 <asp:FileUpload ID="FileUpload1" runat="server" />
             </EditItemTemplate>
          </asp:TemplateField>
         <asp:TemplateField HeaderText="标题">
             <ItemTemplate>
                <%#Eval("title")%>
             </ItemTemplate>
             <EditItemTemplate>
                 <asp:TextBox ID="title" runat="server" Text=' <%#Eval("title")%>'></asp:TextBox>
             </EditItemTemplate>
          </asp:TemplateField>
          <asp:TemplateField HeaderText="地址">
             <ItemTemplate>
                <%#Eval("url")%>
             </ItemTemplate>
             <EditItemTemplate>
                 <asp:TextBox ID="url" runat="server" Text=' <%#Eval("url")%>'></asp:TextBox>
             </EditItemTemplate>
          </asp:TemplateField>
          <asp:CommandField ShowEditButton="True" HeaderText="操作" >
            </asp:CommandField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
</asp:Content>

